﻿<Window x:Class="Brjnk.GpxExplorer.UI.AboutWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:loc="clr-namespace:Brjnk.GpxExplorer.Localization"
        WindowStartupLocation="CenterOwner"
        Title="{loc:Loc titleAbout}" Width="300" SizeToContent="Height" ResizeMode="NoResize">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Image Source="/Resources/Icons/logo.png" Margin="10"></Image>
        <TextBlock Foreground="Red" HorizontalAlignment="Right" Margin="10" FontWeight="Bold" FontSize="15" Visibility="{Binding Path=IsBeta, Converter={StaticResource BooleanToVisibilityConverter}}">BETA</TextBlock>
        <!--<TextBlock Grid.ColumnSpan="2" HorizontalAlignment="Center" FontSize="30">GPX Explorer</TextBlock>-->

        <TextBlock Grid.Row="1" Text="{Binding Version}" />
        <TextBlock  Grid.Row="2" Text="{Binding Date}" />

        <StackPanel Orientation="Horizontal" Grid.Row="3">
            <TextBlock Margin="0" Text="GpxExplorer" />
            <TextBlock Margin="0" Text="@outlook.cz" />
        </StackPanel>

        <TextBlock FontSize="15"  Style="{StaticResource LinkStyle}" Grid.Row="4" Text="http://gpxexplorer.codeplex.com/" />
        <TextBlock Margin="0 20 0 0" Grid.Row="5" TextWrapping="Wrap" Text="{loc:Loc aboutMapCacheInfo}" />
        <TextBlock Grid.Row="6" Style="{StaticResource LinkStyle}" Text="{Binding CacheDirectory}" />
    </Grid>
</Window>